
package com.scalar.chiptrack.users.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackActionForm;

public class AdapterSettingForm extends ChipTrackActionForm {

    private int locationId		= -1;
    private String userId		= null;
    private String passWord		= null;
	private String acctNo		= null;
	private String vendorName	= null;
	private String frequency    = null;
	private String jobHandler   = null;
	private String jobName		= null;
	private int jobId			= -1;
	private String same			= null;
	private String outPutDirectory = null;


    
    public int getLocationId()
    {
        return locationId;
    }
    
    public void setLocationId(int locationId)
    {
        this.locationId = locationId;
    }
    
    public String getUserId()
    {
        return userId;
    }
    
    public void setUserId(String userId)
    {
        this.userId = userId;
    }
    
    public String getPassWord()
    {
        return passWord;
    }
    
    public void setPassWord(String passWord)
    {
        this.passWord = passWord;
    }
    
    public String getAcctNo()
    {
        return acctNo;
    }
    
    public void setAcctNo(String acctNo)
    {
        this.acctNo = acctNo;
    }

	public String getVendorName()
    { 
        return vendorName;
    }

    public void setVendorName(String vendorName)
    {
		this.vendorName = vendorName;
    }

	public String getFrequency()
	{
		return frequency;
	}

	public void setFrequency(String frequency )
	{
		this.frequency = frequency;
	}

	public String getJobName()
	{
		return jobName;
	}

	public void setJobName(String jobName )
	{
		this.jobName = jobName;
	}

	public String getJobHandler()
	{
		return jobHandler;
	}

	public void setJobHandler(String jobHandler )
	{
		this.jobHandler = jobHandler;
	}

	public int getJobId()
	{
		return jobId;
	}

	public void setJobId(int jobId )
	{
		this.jobId = jobId;
	}
	
	public String getSame()
	{
		return same;
	}

	public void setSame(String same )
	{
		this.same = same;
	}

	public String getOutPutDirectory()
	{
		return outPutDirectory;
	}

	public void setOutPutDirectory(String outPutDirectory )
	{
		this.outPutDirectory = outPutDirectory;
	}



     public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();

        //if ((vendorName == null) || (vendorName.length() < 1))
        //    errors.add("Vendor", new ActionError("error.vendor name.required"));

        return errors;

    }
     
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        //nothing to doooo
    }
}